/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.system.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户角色Entity
 * @author jyangye
 * @version 2018-04-16
 */
public class SysUserrole extends DataEntity<SysUserrole> {
	
	private static final long serialVersionUID = 1L;
	private String userroleid;		// userroleid
	private String roleid;		// 角色ID
	private String userid;		// 用户ID
	
	public SysUserrole() {
		super();
	}

	public SysUserrole(String id){
		super(id);
	}

	@Length(min=1, max=32, message="userroleid长度必须介于 1 和 32 之间")
	@ExcelField(title="userroleid", align=2, sort=10)
	public String getUserroleid() {
		return userroleid;
	}

	public void setUserroleid(String userroleid) {
		this.userroleid = userroleid;
	}
	
	@Length(min=1, max=32, message="角色ID长度必须介于 1 和 32 之间")
	@ExcelField(title="角色ID", align=2, sort=20)
	public String getRoleid() {
		return roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}
	
	@Length(min=1, max=32, message="用户ID长度必须介于 1 和 32 之间")
	@ExcelField(title="用户ID", align=2, sort=30)
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
}